package com.qms.qep.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.qms.qep.mapper.ProcessMapper;
import com.qms.qep.domain.Process;
import com.qms.qep.service.IProcessService;

/**
 * 生产工序Service业务层处理
 * 
 * @author qep
 */
@Service
public class ProcessServiceImpl implements IProcessService 
{
    @Autowired
    private ProcessMapper processMapper;

    /**
     * 查询生产工序
     * 
     * @param id 生产工序主键
     * @return 生产工序
     */
    @Override
    public Process selectProcessById(Long id)
    {
        return processMapper.selectProcessById(id);
    }

    /**
     * 查询生产工序列表
     * 
     * @param process 生产工序
     * @return 生产工序
     */
    @Override
    public List<Process> selectProcessList(Process process)
    {
        return processMapper.selectProcessList(process);
    }

    /**
     * 新增生产工序
     * 
     * @param process 生产工序
     * @return 结果
     */
    @Override
    public int insertProcess(Process process)
    {
        return processMapper.insertProcess(process);
    }

    /**
     * 修改生产工序
     * 
     * @param process 生产工序
     * @return 结果
     */
    @Override
    public int updateProcess(Process process)
    {
        return processMapper.updateProcess(process);
    }

    /**
     * 批量删除生产工序
     * 
     * @param ids 需要删除的生产工序主键
     * @return 结果
     */
    @Override
    public int deleteProcessByIds(Long[] ids)
    {
        return processMapper.deleteProcessByIds(ids);
    }

    /**
     * 删除生产工序信息
     * 
     * @param id 生产工序主键
     * @return 结果
     */
    @Override
    public int deleteProcessById(Long id)
    {
        return processMapper.deleteProcessById(id);
    }
} 